<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8" />
    <title>品正后台管理系统</title>
    <meta name="description" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
    <!-- bootstrap & fontawesome -->
    <link rel="stylesheet" href="/static/ace/assets/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/static/ace/assets/font-awesome/4.5.0/css/font-awesome.min.css" />
    <!-- page specific plugin styles -->
    <link rel="stylesheet" href="/static/ace/assets/css/jquery-ui.min.css" />
    {block name="plugin-styles"}{/block}
    <!-- text fonts --> 
    <link rel="stylesheet" href="/static/ace/assets/css/fonts.googleapis.com.css" />
    <!-- ace styles -->
    <link rel="stylesheet" href="/static/ace/assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />
    <!--[if lte IE 9]>
		<link rel="stylesheet" href="/static/ace/assets/css/ace-part2.min.css" class="ace-main-stylesheet" />
	<![endif]-->
    <link rel="stylesheet" href="/static/ace/assets/css/ace-skins.min.css" />
    <link rel="stylesheet" href="/static/ace/assets/css/ace-rtl.min.css" />
    <!--[if lte IE 9]>
		<link rel="stylesheet" href="/static/ace/assets/css/ace-ie.min.css" />
	<![endif]-->
    <!-- inline styles related to this page -->
    {block name="inline-styles"}{/block}
    <!-- ace settings handler -->
    <script src="/static/ace/assets/js/ace-extra.min.js"></script>
    <!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->
    <!--[if lte IE 8]>
		<script src="/static/ace/assets/js/html5shiv.min.js"></script>
		<script src="/static/ace/assets/js/respond.min.js"></script>
	<![endif]-->
</head>

<body class="no-skin">
    <div id="navbar" class="navbar navbar-default ace-save-state">
        <div class="navbar-container ace-save-state" id="navbar-container">
            <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
                <span class="sr-only">Toggle sidebar</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <div class="navbar-header pull-left">
                <a href="index.html" class="navbar-brand">
					<small>
						<i class="fa fa-fire"></i>
						Ace Admin
					</small>
				</a>
            </div>
            <div class="navbar-buttons navbar-header pull-right" role="navigation">
                <ul class="nav ace-nav">
                    <li class="light-blue dropdown-modal">
                        <a data-toggle="dropdown" href="#" class="dropdown-toggle">
							<img class="nav-user-photo" src="/static/ace/assets/images/avatars/user.jpg" alt="Jason's Photo" />
							<span class="user-info">
								<small>Welcome,</small>
								admin
							</span>

							<i class="ace-icon fa fa-caret-down"></i>
						</a>
                        <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close" >
                            <li>
                                <a href="{:url('Admin/password')}">
									<i class="ace-icon fa fa-cog"></i>
									修改密码
								</a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="{:url('Index/logout')}">
									<i class="ace-icon fa fa-power-off"></i>
									安全退出
								</a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
        <!-- /.navbar-container -->
    </div>
    <div class="main-container ace-save-state" id="main-container">
        <script type="text/javascript">
        try { ace.settings.loadState('main-container') } catch (e) {}
        </script>
        <div id="sidebar" class="sidebar responsive ace-save-state">
            <script type="text/javascript">
            try { ace.settings.loadState('sidebar') } catch (e) {}
            </script>
            <div class="sidebar-shortcuts" id="sidebar-shortcuts">
                <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
                    <a class="btn btn-success" href="#">
                        <i class="ace-icon fa fa-signal"></i>
                    </a>
                    <a class="btn btn-info" href="#">
                        <i class="ace-icon fa fa-pencil"></i>
                    </a>
                    <a class="btn btn-warning" href="#">
                        <i class="ace-icon fa fa-user"></i>
                    </a>
                    <a class="btn btn-danger" href="#">
                        <i class="ace-icon fa fa-cogs"></i>
                    </a>
                </div>
                <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
                    <span class="btn btn-success"></span>
                    <span class="btn btn-info"></span>
                    <span class="btn btn-warning"></span>
                    <span class="btn btn-danger"></span>
                </div>
            </div>
            <!-- /.sidebar-shortcuts -->
            
            <ul class="nav nav-list">
                <li class="">
                    <a href="{:url('Index/index')}">
                        <i class="menu-icon fa fa-tachometer"></i>
                        <span class="menu-text"> 首页 </span>
                    </a>
                    <b class="arrow"></b>
                </li>
                <li class="hide">
                    <a href="{:url('Index/index')}">
                        <i class="menu-icon fa fa-list"></i>
                        <span class="menu-text"> 账号管理 </span>
                    </a>

                    <b class="arrow"></b>
                </li>
                <li class="" >
                    <a href="#" class="dropdown-toggle">
                        <i class="menu-icon fa fa-users"></i>
                        <span class="menu-text"> 代理管理 </span>
                        <b class="arrow fa fa-angle-down"></b>
                    </a>
                    <b class="arrow"></b>
                    <ul class="submenu" {if condition="($Request.controller == 'Agent')"}style="display: block;"{/if}>
                        <li class="{if condition="($Request.path == 'admin/agent/index')"}active{/if}">
                            <a href="{:url('Agent/index')}">
                                <i class="menu-icon fa fa-caret-right"></i>
                               代理列表
                            </a>

                            <b class="arrow"></b>
                        </li>
                        <li class="hide">
                            <a href="#">
                                <i class="menu-icon fa fa-caret-right"></i>
                               代理树状图
                            </a>

                            <b class="arrow"></b>
                        </li>
                        <li class="{if condition="($Request.path == 'admin/agent/examine')"}active{/if}">
                            <a href="{:url('Agent/examine')}">
                                <i class="menu-icon fa fa-caret-right"></i>
                               代理审核
                            </a>
                            <b class="arrow"></b>
                        </li>
                        <li class="{if condition="($Request.path == 'admin/agent/address')"}active{/if}">
                            <a href="{:url('Agent/address')}">
                                <i class="menu-icon fa fa-caret-right"></i>
                               代理地址
                            </a>
                            <b class="arrow"></b>
                        </li>
                    </ul>
                </li>
                <li class="">
                    <a href="#" class="dropdown-toggle">
                        <i class="menu-icon fa glyphicon-euro"></i>
                        <span class="menu-text"> 虚拟币管理 </span>
                        <b class="arrow fa fa-angle-down"></b>
                    </a>
                    <b class="arrow"></b>

                    <ul class="submenu" {if condition="($Request.path == 'admin/recharge/record' or $Request.path == 'admin/withdraw/record')"}style="display: block;"{/if}>
                        <li class="hide">
                            <a href="#">
                                <i class="menu-icon fa fa-caret-right"></i>
                               代理资金
                            </a>

                            <b class="arrow"></b>
                        </li>
                        <li class="{if condition="($Request.path == 'admin/recharge/record')"}active{/if}">
                            <a href="{:url('Recharge/record')}">
                                <i class="menu-icon fa fa-caret-right"></i>
                               充值记录
                            </a>

                            <b class="arrow"></b>
                        </li>
                        <li class="">
                            <a href="#">
                                <i class="menu-icon fa fa-caret-right"></i>
                               扣费记录
                            </a>

                            <b class="arrow"></b>
                        </li>
                        <li class="{if condition="($Request.path == 'admin/withdraw/record')"}active{/if}">
                            <a href="{:url('Withdraw/record')}">
                                <i class="menu-icon fa fa-caret-right"></i>
                               提现记录
                            </a>

                            <b class="arrow"></b>
                        </li>
                    </ul>
                </li>
                <li class="">
                    <a href="#" class="dropdown-toggle">
                        <i class="menu-icon fa glyphicon-euro"></i>
                        <span class="menu-text"> 虚拟币审核 </span>
                        <b class="arrow fa fa-angle-down"></b>
                    </a>
                    <b class="arrow"></b>

                    <ul class="submenu" {if condition="($Request.path == 'admin/recharge/index' or $Request.path == 'admin/withdraw/index')"}style="display: block;"{/if}>
                        <li class="{if condition="($Request.path == 'admin/recharge/index')"}active{/if}">
                            <a href="{:url('Recharge/index')}">
                                <i class="menu-icon fa fa-caret-right"></i>
                               充值审核
                            </a>

                            <b class="arrow"></b>
                        </li>
                        <li class="{if condition="($Request.path == 'admin/withdraw/index')"}active{/if}">
                            <a href="{:url('Withdraw/index')}">
                                <i class="menu-icon fa fa-caret-right"></i>
                               提现审核
                            </a>

                            <b class="arrow"></b>
                        </li>
                    </ul>
                </li>
                <li class="">
                	<a href="#" class="dropdown-toggle">
                    	<i class="menu-icon fa fa-product-hunt"></i>
                        商品管理
                        <b class="arrow fa fa-angle-down"></b>
                    </a>
                    <b class="arrow"></b>
                    <ul class="submenu" {if condition="$Request.controller == 'GoodsClassify' or $Request.controller == 'Goods'"}style="display: block;"{/if}>
                         <li class="{if condition="($Request.path == 'admin/goods/index')"}active{/if}">
                            <a href="{:url('Goods/index')}">
                                <i class="menu-icon fa fa-caret-right"></i>
                               商品列表
                            </a>
                            <b class="arrow"></b>
                        </li>
                        <li class="{if condition="($Request.path == 'admin/goods/store')"}active{/if}">
                            <a href="{:url('Goods/store')}">
                                <i class="menu-icon fa fa-caret-right"></i>
                               仓库管理
                            </a>
                            <b class="arrow"></b>
                        </li>
                        <li class="{if condition="($Request.path == 'admin/goods_classify/index')"}active{/if}">
                            <a href="{:url('GoodsClassify/index')}">
                                <i class="menu-icon fa fa-caret-right"></i>
                               商品分类
                            </a>
                            <b class="arrow"></b>
                        </li>
                        <li class="hide">
                            <a href="#">
                                <i class="menu-icon fa fa-caret-right"></i>
                               商品属性
                            </a>
                            <b class="arrow"></b>
                        </li>
                        <li class="{if condition="($Request.path == 'admin/goods/goods_type')"}active{/if}">
                            <a href="{:url('Goods/goods_type')}">
                                <i class="menu-icon fa fa-caret-right"></i>
                                    商品类型
                            </a>
                            <b class="arrow"></b>
                        </li>

                        <li class="{if condition="($Request.path == 'admin/goods/goods_spec')"}active{/if}">
                            <a href="{:url('Goods/goods_spec')}">
                                <i class="menu-icon fa fa-caret-right"></i>
                                    商品规格
                            </a>
                            <b class="arrow"></b>
                        </li>
                        <li class="{if condition="($Request.path == 'admin/goods/goods_spec_item')"}active{/if}">
                            <a href="{:url('Goods/goods_spec_item')}">
                                <i class="menu-icon fa fa-caret-right"></i>
                                 商品规格项
                            </a>
                            <b class="arrow"></b>
                        </li>
                    </ul>
                </li>
                <li class="">
                    <a href="{:url('order/index')}?status=0" class="dropdown-toggle">
	                   <i class="menu-icon fa fa-list"></i>
	                   <span class="menu-text">订单管理</span>
	                   <b class="arrow fa fa-angle-down"></b>
                    </a>
                    <b class="arrow"></b>
                    <ul class="submenu" {if condition="$Request.controller == 'Order'"}style="display: block;"{/if}>
                    	<li class="{if condition="($Request.path == 'admin/order/index' and $Request.param.status == 0)"}active{/if}">
                            <a href="{:url('order/index')}?status=0">
                                <i class="menu-icon fa fa-caret-right"></i>
                               全部订单
                            </a>

                            <b class="arrow"></b>
                        </li>
                        <li class="{if condition="($Request.path == 'admin/order/index' and $Request.param.status == 1)"}active{/if}">
                            <a href="{:url('order/index')}?status=1">
                                <i class="menu-icon fa fa-caret-right"></i>
                               待发货订单
                            </a>

                            <b class="arrow"></b>
                        </li>
                        <li class="{if condition="($Request.path == 'admin/order/index' and $Request.param.status == 3)"}active{/if}">
                            <a href="{:url('order/index')}?status=3">
                                <i class="menu-icon fa fa-caret-right"></i>
                               配送中订单
                            </a>
                            <b class="arrow"></b>
                        </li>
                        <li class="{if condition="($Request.path == 'admin/order/index' and $Request.param.status == 5)"}active{/if}">
                            <a href="{:url('order/index')}?status=5">
                                <i class="menu-icon fa fa-caret-right"></i>
                               已完成订单
                            </a>
                            <b class="arrow"></b>
                        </li>
                        <li class="{if condition="($Request.path == 'admin/order/index' and $Request.param.status == 2)"}active{/if}">
                            <a href="{:url('order/index')}?status=2">
                                <i class="menu-icon fa fa-caret-right"></i>
                               已取消订单
                            </a>
                            <b class="arrow"></b>
                        </li>
                        <li class="{if condition="($Request.path == 'admin/order/index' and $Request.param.status == 4)"}active{/if}">
                            <a href="{:url('order/index')}?status=4">
                                <i class="menu-icon fa fa-caret-right"></i>
                               申换订单
                            </a>

                            <b class="arrow"></b>
                        </li>
                	</ul>
                </li>
                <li class="">
                    <a href="#" class="dropdown-toggle">
                        <i class="menu-icon fa fa-signal"></i>
                        <span class="menu-text"> 统计报表 </span>
                        <b class="arrow fa fa-angle-down"></b>
                    </a>
                    <b class="arrow"></b>

                    <ul class="submenu" {if condition="$Request.controller == 'Stats'"}style="display: block;"{/if}>
                        <li class="{if condition="($Request.path == 'admin/stats/index')"}active{/if}">
                            <a href="{:url('stats/index')}">
                                <i class="menu-icon fa fa-caret-right"></i>
                               订单统计
                            </a>

                            <b class="arrow"></b>
                        </li>
                    </ul>
                </li>
                <li class="">
                    <a href="#" class="dropdown-toggle">
                        <i class="menu-icon fa fa-credit-card"></i>
                        <span class="menu-text"> 返利管理 </span>
                        <b class="arrow fa fa-angle-down"></b>
                    </a>
                    <b class="arrow"></b>

                    <ul class="submenu" {if condition="$Request.controller == 'Rebate' or $Request.controller == 'Reward'"}style="display: block;"{/if}>
                        <li class="{if condition="($Request.path == 'admin/reward/order_reward')"}active{/if}">
                            <a href="{:url('reward/order_reward')}">
                                <i class="menu-icon fa fa-caret-right"></i>
                               推荐订单返利
                            </a>

                            <b class="arrow"></b>
                        </li>
                        <li class="{if condition="($Request.path == 'admin/reward/month_reward')"}active{/if}">
                            <a href="{:url('reward/month_reward')}">
                                <i class="menu-icon fa fa-caret-right"></i>
                               团队业绩返利
                            </a>
                            <b class="arrow"></b>
                        </li>
                        <li class="{if condition="($Request.path == 'admin/reward/leader_reward')"}active{/if}">
                            <a href="{:url('reward/leader_reward')}">
                                <i class="menu-icon fa fa-caret-right"></i>
                               积分业绩返利
                            </a>
                            <b class="arrow"></b>
                        </li>
                        <li class="{if condition="($Request.path == 'admin/rebate/index')"}active{/if}">
                            <a href="{:url('Rebate/index')}">
                                <i class="menu-icon fa fa-caret-right"></i>
                               返利设置
                            </a>

                            <b class="arrow"></b>
                        </li>
                    </ul>
                </li>
            </ul>        
            
            <!-- /.nav-list -->
            <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
                <i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
            </div>
        </div>
        <div class="main-content">
            <div class="main-content-inner">
                <div class="breadcrumbs ace-save-state" id="breadcrumbs">
                	{block name="breadcrumbs"}
                    <ul class="breadcrumb">
                        <li>
                            <i class="ace-icon fa fa-home home-icon"></i>
                            <a href="{:url('Index/index')}">首页</a>
                        </li>
                        <li class="hide">
                            <a href="#">Other Pages</a>
                        </li>
                        <li class="active hide">Blank Page</li>
                    </ul>
                    <!-- /.breadcrumb -->
                    <div class="nav-search hide" id="nav-search">
                        <form class="form-search">
                            <span class="input-icon">
								<input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
								<i class="ace-icon fa fa-search nav-search-icon"></i>
							</span>
                        </form>
                    </div>
                    <!-- /.nav-search -->
                    {/block}
                </div>
                <div class="page-content">
                    <div class="ace-settings-container" id="ace-settings-container">
                        <div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn">
                            <i class="ace-icon fa fa-cog bigger-130"></i>
                        </div>
                        <div class="ace-settings-box clearfix" id="ace-settings-box">
                            <div class="pull-left width-50">
                                <div class="ace-settings-item">
                                    <div class="pull-left">
                                        <select id="skin-colorpicker" class="hide">
                                            <option data-skin="no-skin" value="#438EB9">#438EB9</option>
                                            <option data-skin="skin-1" value="#222A2D">#222A2D</option>
                                            <option data-skin="skin-2" value="#C6487E">#C6487E</option>
                                            <option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
                                        </select>
                                    </div>
                                    <span>&nbsp; Choose Skin</span>
                                </div>
                                <div class="ace-settings-item">
                                    <input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-navbar" autocomplete="off" />
                                    <label class="lbl" for="ace-settings-navbar"> Fixed Navbar</label>
                                </div>
                                <div class="ace-settings-item">
                                    <input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-sidebar" autocomplete="off" />
                                    <label class="lbl" for="ace-settings-sidebar"> Fixed Sidebar</label>
                                </div>
                                <div class="ace-settings-item">
                                    <input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-breadcrumbs" autocomplete="off" />
                                    <label class="lbl" for="ace-settings-breadcrumbs"> Fixed Breadcrumbs</label>
                                </div>
                                <div class="ace-settings-item">
                                    <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" autocomplete="off" />
                                    <label class="lbl" for="ace-settings-rtl"> Right To Left (rtl)</label>
                                </div>
                                <div class="ace-settings-item">
                                    <input type="checkbox" class="ace ace-checkbox-2 ace-save-state" id="ace-settings-add-container" autocomplete="off" />
                                    <label class="lbl" for="ace-settings-add-container">
                                        Inside
                                        <b>.container</b>
                                    </label>
                                </div>
                            </div>
                            <!-- /.pull-left -->
                            <div class="pull-left width-50">
                                <div class="ace-settings-item">
                                    <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-hover" autocomplete="off" />
                                    <label class="lbl" for="ace-settings-hover"> Submenu on Hover</label>
                                </div>
                                <div class="ace-settings-item">
                                    <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-compact" autocomplete="off" />
                                    <label class="lbl" for="ace-settings-compact"> Compact Sidebar</label>
                                </div>
                                <div class="ace-settings-item">
                                    <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-highlight" autocomplete="off" />
                                    <label class="lbl" for="ace-settings-highlight"> Alt. Active Item</label>
                                </div>
                            </div>
                            <!-- /.pull-left -->
                        </div>
                        <!-- /.ace-settings-box -->
                    </div>
                    <!-- /.ace-settings-container -->
                    
                    <!-- PAGE CONTENT BEGINS -->
                    {block name="content"}
                    <div class="alert alert-block alert-success">
                        <button type="button" class="close" data-dismiss="alert">
                            <i class="ace-icon fa fa-times"></i>
                        </button>
                        <i class="ace-icon fa fa-check green"></i> Welcome to
                        <strong class="green">Ace 
                        	<small>(v1.4)</small>
                        </strong>, лёгкий, многофункциональный и простой в использовании шаблон для админки на bootstrap 3.3.6. Загрузить исходники с <a href="https://github.com/bopoda/ace">github</a> (with minified ace js/css files).
                    </div>
                    {/block}
                    <!-- PAGE CONTENT ENDS -->
                        
                </div>
                <!-- /.page-content -->
            </div>
        </div>
        <!-- /.main-content -->
        <div class="footer">
            <div class="footer-inner">
                <div class="footer-content">
                    <span class="bigger-120">
						<span class="blue bolder">品正</span>  &copy; 2018-2028
                    </span>
                </div>
            </div>
        </div>
        <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
			<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
		</a>
    </div>
    <!-- /.main-container -->
    <!-- basic scripts -->
    <!--[if !IE]> -->
    <script src="/static/ace/assets/js/jquery-2.1.4.min.js"></script>
    <!-- <![endif]-->
    <!--[if IE]>
		<script src="/static/ace/assets/js/jquery-1.11.3.min.js"></script>
	<![endif]-->
    <script type="text/javascript">
    if ('ontouchstart' in document.documentElement) document.write("<script src='assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
    </script>
    <script src="/static/ace/assets/js/bootstrap.min.js"></script>
    <!-- page specific plugin scripts -->
    <script src="/static/ace/assets/js/jquery-ui.min.js"></script>
    <script src="/static/ace/assets/js/jquery.ui.touch-punch.min.js"></script>
    <script src="/static/plugin/jquery.form.js"></script>
    {block name="plugin-scripts"}{/block}
    <!-- ace scripts -->
    <script src="/static/ace/assets/js/ace-elements.min.js"></script>
    <script src="/static/ace/assets/js/ace.min.js"></script>
    <!-- inline scripts related to this page -->
    <script type="text/javascript">
    // 获得链接中参数
    function GetQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]);
        return null;
    }
    //详情回显
    function initPageHTML(id, json) {
        var data = $("#" + id + " *[id]");
        data.each(function() {
            var value = json[$(this).attr("id")];
            if (value != null) {
                $(this).html(value);
            }
        });
    }
    </script>
    {block name="related-scripts"}{/block}
</body>

</html>
